package com.hhs.storage.service;

import com.hhs.storage.bean.InputParam;
import com.hhs.storage.bean.TopicMessage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hhs.storage.bean.TopicUserRefuseCount;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author hhs
 * @since 2023-03-01
 */
public interface TopicMessageService extends IService<TopicMessage> {
    /**
     * 根据话题获取所有相关评论
     * @param topicId
     * @return
     */
    public Map<String,Object> getListByTopicId(String topicId,String bakTopicId,Boolean lookAll,String clickItemIds);
    /**
     * 查询当前用户消息分组列表
     * @param param
     * @return
     */
    public Map<String,Object> getMessageGroupList(InputParam param);
    /**
     * 查询当前用户是否有未读消息
     * @return
     */
    public Map<String,Object> checkHasNewMessage();
    public Map<String,Object> getEdit(String topicId);
    public Map<String,Object> add(TopicMessage topicMessage);

    /**
     * 在项目管理面板上的留言增加
     * @param topicMessage
     * @return
     */
    Map<String, Object> add2(TopicMessage topicMessage);

    public Map<String,Object> delete(String id);

    /**
     * 根据话题id删除数据
     * @param topicId
     * @return
     */
    public Map<String, Object> deleteByTopicId(String topicId);

    Map<String, Object> refuse(TopicUserRefuseCount t);

    Map<String, Object> agree(TopicUserRefuseCount t);

}
